<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('waitingList')}">
	<a href="#" onclick="if(confirm('${i18n.getMessage('dialog.delete')}')) { cc('program/deleteAllWaiting.sgt?levelId=${level.id}');}">${i18n.getMessage('deleteAll')}</a>
	- <a href="#" onclick="cc('offering/showAddOffering.sgt?levelId=${level.id}')">${i18n.getMessage('openOffering')}</a>
</@showTitle>

<br/>

<b style="margin-left:2px">${i18n.getMessage('level')}:</b> ${(level.name)!}


<@display.table id="listTable" name="level.waitings">
	<@display.column title="${i18n.getMessage('index')}" style="text-align:center"><a href="#" onclick="cc('student/showInfoStudent.sgt?id=${listTable.student.id}')">${listTable_rowNum!}</a></@display.column>
	<@display.column title="${i18n.getMessage('firstName')}">${(listTable.student.firstName)!}</@display.column>
	<@display.column title="${i18n.getMessage('lastName')}">${(listTable.student.lastName)!}</@display.column>
	<@display.column title="${i18n.getMessage('gender')}" style="text-align:center">${i18n.getMessage(listTable.student.gender.key)}</@display.column>
	<@display.column title="${i18n.getMessage('dateOfBirth')}" style="text-align:center">${(listTable.student.dateOfBirth?date)!}</@display.column>
	<@display.column title="${i18n.getMessage('phoneNumber')}">${(listTable.student.phoneNumber)!}</@display.column>
	<@display.column title="${i18n.getMessage('comment')}">${(listTable.comment)!}</@display.column>
	<@display.column title="${i18n.getMessage('edit')}" style="text-align:center"><img src="images/edit.gif" onclick="cc('program/showEditWaiting.sgt?id=${listTable.id}')" style="cursor:pointer"/></@display.column>
	<@display.column title="${i18n.getMessage('delete')}" style="text-align:center"><img src="images/delete.gif" onclick="if(confirm('${i18n.getMessage('dialog.delete')}')) { cc('program/deleteWaiting.sgt?id=${(listTable.id)!}&levelId=${(level.id)!}');}" style="cursor:pointer"/></@display.column>
</@display.table>

<br/><br/>


